#!/bin/bash

wget https://mirrors.aliyun.com/composer/composer.phar -O composer 
chmod +x composer
phpbin=`which php`
sudo mv composer `dirname $phpbin`
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer dumpautoload